public class ClubStatSystem1 {
    public static void main(String[] args){
        String[] clubNames = {"编程社","动漫社","志愿者社","音乐社","篮球社"};
        int[] clubCounts = {25,32,18,28,35};
        int[] newStudentCounts = {18,25,15,20,28};

        String maxCountClub = "";
        int maxCount=0;
        System.out.println("校园社团纳新统计结果: ");
        System.out.println("----------------------------");
        for(int i = 0;i < clubNames.length;i++){
            double newRatio = (double)newStudentCounts[i] / clubCounts[i] * 100;
            newRatio = Math.round(newRatio * 10) / 10.0;
            System.out.println("社团名称: "+clubNames[i]);
            System.out.println("报名总人数: "+ clubCounts[i] + "人");
            System.out.println("新生人数: "+ newStudentCounts[i] + "人");
            System.out.println("新生占比: "+ newRatio + "%");
            System.out.println("-------------------------");
            if(clubCounts[i]>maxCount){
                maxCount = clubCounts[i];
                maxCountClub = clubNames[i];
            }
        }
        System.out.println("报名人数最多的社团: " + maxCountClub + "("+maxCount +"人) ");
    }
}
